package com.yupi.yuapicommon.model.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 接口调用信息
 * @TableName interface_invoke_info
 */
@TableName(value ="interface_invoke_info")
@Data
public class InterfaceInvokeInfo implements Serializable {
    /**
     * 主键
     */
    @TableId(type = IdType.AUTO)
    @ApiModelProperty(value = "主键")
    private Long id;

    /**
     * 调用方id
     */
    @ApiModelProperty(value = "调用方id")
    private Long userid;

    /**
     * 接口id
     */
    @ApiModelProperty(value = "接口id")
    private Long interfaceInfoid;

    /**
     * 请求信息
     */
    @ApiModelProperty(value = "请求信息")
    private String requestinfo;

    /**
     * 任务状态 (0-success 1-waiting 2-executing 3-fail)
     */
    @ApiModelProperty(value = "任务状态 (0-success 1-waiting 2-executing 3-fail)")
    private Integer status;

    /**
     * 接口调用结果
     */
    @ApiModelProperty(value = "接口调用结果")
    private String result;

    /**
     * 执行信息
     */
    @ApiModelProperty(value = "执行信息")
    private String execmessage;

    /**
     * 创建时间
     */
    @ApiModelProperty(value = "创建时间")
    private String createtime;

    /**
     * 更新时间
     */
    @ApiModelProperty(value = "更新时间")
    private String updatetime;

    /**
     * 是否已经删除
     */
    @TableLogic
    @ApiModelProperty(value = "是否已经删除")
    private Integer isDelete;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}